# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc


###########################################################################
## Class TimePanel
###########################################################################

class TimePanel(wx.Panel):

    def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(1000, 400), style=wx.TAB_TRAVERSAL,
                 name=wx.EmptyString):
        wx.Panel.__init__(self, parent, id=id, pos=pos, size=size, style=style, name=name)

        bSizer5 = wx.BoxSizer(wx.VERTICAL)

        bSizer6 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_staticText1 = wx.StaticText(self, wx.ID_ANY, u"当前时间戳", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText1.Wrap(-1)

        bSizer6.Add(self.m_staticText1, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)

        self.edit_now_ms = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(200, -1), 0)
        bSizer6.Add(self.edit_now_ms, 0, wx.ALL, 5)

        self.btn_start = wx.Button(self, wx.ID_ANY, u"开始", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer6.Add(self.btn_start, 0, wx.ALL, 5)

        self.btn_stop = wx.Button(self, wx.ID_ANY, u"停止", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer6.Add(self.btn_stop, 0, wx.ALL, 5)

        self.btn_refresh = wx.Button(self, wx.ID_ANY, u"刷新", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer6.Add(self.btn_refresh, 0, wx.ALL, 5)

        bSizer5.Add(bSizer6, 0, wx.EXPAND, 5)

        bSizer7 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_staticText2 = wx.StaticText(self, wx.ID_ANY, u"时间戳", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText2.Wrap(-1)

        bSizer7.Add(self.m_staticText2, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)

        self.m_textCtrl3 = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(200, -1), 0)
        bSizer7.Add(self.m_textCtrl3, 0, wx.ALL, 5)

        self.m_staticText3 = wx.StaticText(self, wx.ID_ANY, u"毫秒", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText3.Wrap(-1)

        bSizer7.Add(self.m_staticText3, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)

        self.btn_format = wx.Button(self, wx.ID_ANY, u"转换", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer7.Add(self.btn_format, 0, wx.ALL, 5)

        self.edit_date_str = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(240, -1), 0)
        bSizer7.Add(self.edit_date_str, 0, wx.ALL, 5)

        bSizer5.Add(bSizer7, 0, wx.EXPAND, 5)

        self.SetSizer(bSizer5)
        self.Layout()

        # Connect Events
        self.btn_start.Bind(wx.EVT_BUTTON, self.startTiming)
        self.btn_stop.Bind(wx.EVT_BUTTON, self.stopTiming)
        self.btn_refresh.Bind(wx.EVT_BUTTON, self.refreshTiming)
        self.btn_format.Bind(wx.EVT_BUTTON, self.timeStampToDate)

    def __del__(self):
        pass

    # Virtual event handlers, override them in your derived class
    def startTiming(self, event):
        event.Skip()

    def stopTiming(self, event):
        event.Skip()

    def refreshTiming(self, event):
        event.Skip()

    def timeStampToDate(self, event):
        event.Skip()
